package com.andaily.domain.dto.thing;

import com.andaily.domain.dto.AbstractDTO;
import com.andaily.infrastructure.mybatis.data.ThingStatisticsData;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * Date: 13-7-6 下午11:09
 *
 * @author Shengzhao Li
 */
public class ThingStatisticsDto extends AbstractDTO {

    private static List<String> availableHtmlColors = Arrays.asList("#F7464A", "#0000ff", "#D4CCC5", "#9acd32", "#4D5360",
            "#F38630", "#57a957", "#222222", "#69D2E7");

    private List<ThingStatisticsData> dataList = new ArrayList<ThingStatisticsData>();

    public ThingStatisticsDto() {
    }

    public ThingStatisticsDto(List<ThingStatisticsData> datas) {
        this.dataList = datas;
    }

    public List<String> getAvailableHtmlColors() {
        return availableHtmlColors;
    }

    public int getSize() {
        return dataList.size();
    }

    public List<ThingStatisticsData> getDataList() {
        return dataList;
    }

    public void setDataList(List<ThingStatisticsData> dataList) {
        this.dataList = dataList;
    }
}
